import request from '@/utils/request'

export function list(data) {
  return request({ url: '/plate/list', data: data, method: 'post' })
}

export function all2(data) {
  return request({ url: '/plate/all', method: 'get' })
}

export function addOrUpdate(data) {
  return request({ url: '/plate/add', data: data, method: 'post' })
}

export function get(id) {
  return request({ url: '/plate/' + id, method: 'get' })
}

export function del(id) {
  return request({ url: '/plate/' + id, method: 'delete' })
}
